<?php if (!defined('THINK_PATH')) exit();?>
  <!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Mr.Hu-添加分类</title>
    <link href="/blog1/Public/Admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/blog1/Public/Admin/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="/blog1/Public/Admin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="/blog1/Public/Admin/css/plugins/dataTables/dataTables.responsive.css" rel="stylesheet">
    <link href="/blog1/Public/Admin/css/plugins/dataTables/dataTables.tableTools.min.css" rel="stylesheet">
    <!-- Toastr style -->
    <link href="/blog1/Public/Admin/css/plugins/toastr/toastr.min.css" rel="stylesheet">

    <!-- Gritter -->
    <link href="/blog1/Public/Admin/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">

    <link href="/blog1/Public/Admin/css/animate.css" rel="stylesheet">
    <link href="/blog1/Public/Admin/css/style.css" rel="stylesheet">

</head>
<body>
    <div id="wrapper">

        <!-- start left -->

      <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element"> <span>
                             </span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">Mr HuYi</strong>
                             </span> <span class="text-muted text-xs block">我是管理员<b class="caret"></b></span> </span> </a>
                        </div>
                        <div class="logo-element">
                            IN+
                        </div>
                    </li>
                    <li class="active">
                <a href="/blog1/index.php/Admin/Index/index"><i class="fa fa-diamond"></i> <span class="nav-label">后台首页</span> <span class="label label-primary pull-right">NEW</span></a>
            </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">网站设置</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li ><a href="/blog1/index.php/Admin/Site/index">网站管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">网站分类管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/Fenlei/index">查看分类</a></li>
                            <li ><a href="/blog1/index.php/Admin/Fenlei/add">添加分类</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">首页幻灯片管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/Slides/index">查看幻灯片</a></li>
                            <li ><a href="/blog1/index.php/Admin/Slides/add">添加幻灯片</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">网站邀请码管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/Yaoqing/index">查看邀请码</a></li>
                            <li ><a href="/blog1/index.php/Admin/Yaoqing/add">添加邀请码</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">网站公告</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/Gonggao/index">查看公告</a></li>
                            <li ><a href="/blog1/index.php/Admin/Gonggao/add">添加公告</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">文章管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/Article/index">查看文章</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">会员管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/User/index">会员查看</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">留言管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a href="/blog1/index.php/Admin/Liuyan/index">留言查看</a></li>
                        </ul>
                    </li>
                <li>
                    <a href="/blog1/index.php/Admin/Login/logout">
                        <i class="fa fa-sign-out"></i> Log out
                    </a>
                </li>
            </ul>

        </nav>
        </div>

         <!-- end left -->
        <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>添加分类</h2>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
        <div class="row">
            <div class="col-lg-12">
                   <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <!-- <h5>All form elements <small>With custom checbox and radion elements.</small></h5> -->
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    <i class="fa fa-wrench"></i>
                                </a>
                                <ul class="dropdown-menu dropdown-user">
                                    <li><a href="#">Config option 1</a>
                                    </li>
                                    <li><a href="#">Config option 2</a>
                                    </li>
                                </ul>
                                <a class="close-link">
                                    <i class="fa fa-times"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content">
                        <div class="hr-line-dashed"></div>
                            <form method="post" class="form-horizontal" action="/blog1/index.php/Admin/Fenlei/addok">
                                <div class="form-group has-success"><label class="col-sm-4 control-label">分类名称</label>

                                    <div class="col-sm-3"><input type="text" class="form-control" name="name" required></div>
                                </div>
                                     <div class="hr-line-dashed"></div>
                                <div class="form-group"><label class="col-sm-4 control-label">上级分类</label>

                                    <div class="col-sm-3">
                                    <select name="fid" class="form-control m-b">
                                        <option value="0">顶级分类</option>
                                        <?php if(is_array($arr)): foreach($arr as $key=>$vo): ?><option value="<?php echo ($vo["id"]); ?>"><?php echo ($vo["name"]); ?></option><?php endforeach; endif; ?>
                                    </select>
                                    </div>
                                </div>
                                 <div class="hr-line-dashed"></div>
                                <div class="form-group has-success"><label class="col-sm-4 control-label">分类样式</label>

                                    <div class="col-sm-3">
                                            <select name="type" id="" class="form-control">
                                                <option value="1">普通样式</option>
                                                <option value="2">音乐样式</option>
                                                <option value="3">电影样式</option>
                                                <option value="4">心情样式</option>
                                            </select>
                                    </div>
                                </div>
                               <div class="ibox-content">
                            <div class="text-center">
                            <input type="submit" value="添加" class="btn btn-primary" data-toggle="modal">
                            </div>

                    </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    <!-- start footer -->
                    
<div class="footer">
    <div class="pull-right">
        10GB of <strong>250GB</strong> Free.
    </div>
    <div>
        <strong>Copyright</strong> Example Company &copy; 2014-2015
    </div>
</div>
</div>
<script type="text/javascript">
    function shifou(){
        if(confirm("是否确认删除？")){
            return true;
        }else{
            return false;
        }
    }
</script>
</body>
</html>
           <!-- Mainly scripts -->
    <script src="/blog1/Public/Admin/js/jquery-2.1.1.js"></script>
    <script src="/blog1/Public/Admin/js/inspinia.js"></script>
    <script src="/blog1/Public/Admin/js/bootstrap.min.js"></script>
    <script src="/blog1/Public/Admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/blog1/Public/Admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Flot -->
    <script src="/blog1/Public/Admin/js/plugins/flot/jquery.flot.js"></script>
    <script src="/blog1/Public/Admin/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="/blog1/Public/Admin/js/plugins/flot/jquery.flot.spline.js"></script>
    <script src="/blog1/Public/Admin/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="/blog1/Public/Admin/js/plugins/flot/jquery.flot.pie.js"></script>

    <!-- Peity -->
    <script src="/blog1/Public/Admin/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/blog1/Public/Admin/js/demo/peity-demo.js"></script>

    <!-- Custom and plugin javascript -->

    <script src="/blog1/Public/Admin/js/plugins/pace/pace.min.js"></script>

    <!-- jQuery UI -->
    <script src="/blog1/Public/Admin/js/plugins/jquery-ui/jquery-ui.min.js"></script>

    <!-- GITTER -->
    <script src="/blog1/Public/Admin/js/plugins/gritter/jquery.gritter.min.js"></script>

    <!-- Sparkline -->
    <script src="/blog1/Public/Admin/js/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!-- Sparkline demo data  -->
    <script src="/blog1/Public/Admin/js/demo/sparkline-demo.js"></script>

    <!-- ChartJS-->
    <script src="/blog1/Public/Admin/js/plugins/chartJs/Chart.min.js"></script>

    <!-- Toastr -->

            <!-- end footer -->
        </div>